﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

/// <summary>
/// Summary description for Class1
/// </summary>
[Table("QHSE_XY_LOGIN")]
public class QHSESysLogin:EntityBase
{
    public QHSESysLogin()
    {
    }

    /// <summary>
    /// 身份证号
    /// </summary>
    [Column("ID_CARD")]
    [MaxLength(18)]
    public string? IdCard { get; set; }= "";


    /// <summary>
    /// 手机号码
    /// </summary>
    [Column("MOBILE")]
    [MaxLength(255)]
    public string? Mobile { get; set; }= "";

    /// <summary>
    /// 用户ID
    /// </summary>
    [Column("USER_ID")]
    [MaxLength(255)]
    [Key]
    public string UserId { get; set; }= "";
    /// <summary>
    /// 权限ID
    /// </summary>
    [Column("AUTH_ID")]
    [MaxLength(255)]
    public string? AuthId { get; set; } = "";
    /// <summary>
    /// 用户真名
    /// </summary>
    [Column("USER_NAME")]
    [MaxLength(255)]
    public string? UserName { get; set; }= "";
    /// <summary>
    /// 用户真名
    /// </summary>
    [Column("REAL_NAME")]
    [MaxLength(255)]
    public string? RealName { get; set; } = "";

    /// <summary>
    /// 中油邮箱
    /// </summary>
    [Column("EMAIL")]
    [MaxLength(255)]
    public string? Email { get; set; }= "";
    /// <summary>
    /// 标志
    /// </summary>
    [Column("TOKEN")]
    [MaxLength(1000)]
    public string? Token { get; set; } = "";
    /// 权限标志
    [Column("PERMISSION")]
    [MaxLength(1000)]
    public string? Permission { get; set; } = "";
    /// 标志
    [Column("ROLE")]
    [MaxLength(1000)]
    public string? Role { get; set; } = "";
    /// <summary>
    /// 登录时间
    /// </summary>
    [Column("LOGIN_TIME")]
    [MaxLength(255)]
    public string? LoginTime { get; set; } = "";
    /// <summary>
    /// 登录IP
    /// </summary>
    [Column("LOGIN_IP")]
    [MaxLength(255)]
    public string? LoginIp { get; set; } = "";
    /// <summary>
    /// 二级组织机构ID
    /// </summary>
    [Column("SECONDORGANIZATIONID")]
    [MaxLength(255)]
    public string? SecondOrganizationId { get; set; } = "";
    /// <summary>
    /// 二级组织机构名
    /// </summary>
    [Column("SECONDORGANIZATIONNAME")]
    [MaxLength(255)]
    public string? SecondOrganizationName { get; set; } = "";
    /// <summary>
    /// 三级组织机构ID
    /// </summary>
    [Column("THIRDORGANIZATIONID")]
    [MaxLength(255)]
    public string? ThirdOrganizationId { get; set; } = "";
    /// <summary>
    /// 三级组织机构名
    /// </summary>
    [Column("THIRDORGANIZATIONNAME")]
    [MaxLength(255)]
    public string? ThirdOrganizationName { get; set; } = "";
    /// <summary>
    /// 当前组织机构ID
    /// </summary>
    [Column("CURRENTORGANIZATIONID")]
    [MaxLength(255)]
    public string? CurrentOrganizationId { get; set; } = "";
    /// <summary>
    /// 当前组织机构名
    /// </summary>
    [Column("CURRENTORGANIZATIONNAME")]
    [MaxLength(255)]
    public string? CurrentOrganizationName { get; set; } = "";

}
